<!DOCTYPE html>
<html class="google" lang="en">
  <head>
    <script>
      (function(H){H.className=H.className.replace(/\bgoogle\b/,'google-js')})(document.documentElement)
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>{{ coursesetup.coursename }}</title>
    <meta name="description" content="">
    <meta name="author" content="">

    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/jquery.wysiwyg.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" type="text/css">
    <script 
    	data-page-module="{{ javascript_main_module }}" 
    	data-main="/assets/js/main"
    	src="/assets/js/libs/require.js" ></script>

    <link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;subset=latin" rel="stylesheet">

  </head>
  <body>

    <!-- logo bar -->
    <div class="gcb-header" id="gcb-header">
      <div class="gcb-aux">
        <h1>
          <a href="{{ coursesetup.inst_url }}"><img src="{{ coursesetup.inst_logo }}"></a>
        </h1>
        <h2>
          <a href="/{{ coursecode }}"  class="gcb_a_editable" gcb-a-action="/editor/{{ coursecode }}/course/header_phrase/" >{{ coursesetup.header_phrase }}</a>
        </h2>
      </div>
    </div>

    <!-- nav bar -->
    <div class="gcb-nav gcb-complex" id="gcb-nav-x">
      <div class="gcb-aux">
        <ul>
          <li>
            <a href="/">Home</a>
          </li>
          {% if registered %}
          <li {% if navbar.home %}class='active'{% endif %}>
            <a href="/{{ coursecode }}">Course Home</a>
          </li>
          {% else %}
          <li {% if navbar.registration %}class='active'{% endif %}>
            <a href="/{{ coursecode }}/register">Registration</a>
          </li>
          {% endif %}
          {% include "fragments/menu-bar.html" with context %}
        </ul>
      </div>
    </div>

    <!-- top section -->
    <div class="is-wrapper">
      <div class="gcb-aux">
    {% block top_content %}{% endblock %}

    <!-- main section -->
    {% block main_content %}{% endblock %}
      </div>
    </div>

    <!-- footer section -->
    <div style="margin-top: 50px;" id="gcb-signature"></div>
    <div class="gcb-footer" id="gcb-footer">
      <div id="gcb-footer-local">
        <div class="gcb-aux">
        </div>
      </div>
      <div id="gcb-footer-global">
        <div class="gcb-aux">
          <ul>
            <li>
              <a href="{{ coursesetup.inst_url_footer }}"  class="gcb_a_editable"   gcb-a-action="/editor/{{ coursecode }}/course/inst_name/"  >{{ coursesetup.inst_name }}</a>
            </li>
            <li>
              <a href="{{ coursesetup.privacy_url_footer }}">Privacy &amp; Terms</a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    
 </body>
</html>
